package org.dromara.common.core.domain.model

import java.io.Serial

/**
 *@author LikeYouDo
 *@date 2025/1/5 16:56
 */
data class XcxLoginUser(
    /**
     * openid
     */
    var openid: String? = null
) : LoginUser() {
    companion object {
        @Serial
        private val serialVersionUID = 1L
    }

    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other !is XcxLoginUser) return false
        if (!super.equals(other)) return false

        if (openid != other.openid) return false

        return true
    }

    override fun hashCode(): Int {
        var result = super.hashCode()
        result = 31 * result + (openid?.hashCode() ?: 0)
        return result
    }

}
